package mp.android.WLANWidget;

import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;

public class WidgetUpdater extends Service {
	static final String TAG = "WLAN Widget UpdaterSvc";

	SharedPreferences prefs;
	
	@Override
	public void onCreate() {
		super.onCreate();
		
		prefs = getSharedPreferences(getPackageName(), MODE_WORLD_READABLE | MODE_WORLD_WRITEABLE);
	}

	@Override
	public void onStart(Intent intent, int startId) {
		int[] appWidgetIds = intent.getIntArrayExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS);
		if (appWidgetIds.length > 0) {
			// Update Widget here... not necessary.
		}
		super.onStart(intent, startId);
		stopSelf();
	}

	
	@Override
	public IBinder onBind(Intent arg0) {
		return null;
	}

}
